package com.april.pattern.behavioral.templatemethod;

import org.junit.jupiter.api.Test;

/**
 * @author April
 * @version V1.0.0
 * @date 2019/07/08 22:57
 * @description 模板方法的测试
 */
public class TemplateMethodTest {
    @Test
    public void templateMethodTest() {
        System.out.println("后端设计模式课程start---");
        AbstractCourse designPatternCourse = new DesignPatternCourse();
        designPatternCourse.makeCourse();
        System.out.println("后端设计模式课程end---");

        System.out.println("前端课程start---");
        AbstractCourse feCourse = new FeCourse(true);
        feCourse.makeCourse();
        System.out.println("前端课程end---");

    }
}
